#ifndef _WX_MEMTEXT_H
#define _WX_MEMTEXT_H

#include "wx/defs.h"

#if wxUSE_TEXTBUFFER

class wxMemoryText : public wxTextBuffer {
  public:
    wxMemoryText() { }
    wxMemoryText( const wxString& name ) : wxTextBuffer( name ) { }
  protected:
    virtual bool OnExists() const{ return false; }
    virtual bool OnOpen( const wxString & ( strBufferName ),wxTextBufferOpenMode ( OpenMode ) ) { return true; }
    virtual bool OnClose() { return true; }
    virtual bool OnRead( const wxMBConv& ( conv ) ) { return true; }
    virtual bool OnWrite( wxTextFileType ( typeNew ),const wxMBConv& ( conv ) = wxConvUTF8 ) { return true; }

  private:
    DECLARE_NO_COPY_CLASS( wxMemoryText )
};

#endif // wxUSE_TEXTBUFFER

#endif // _WX_MEMTEXT_H

